package com.tengfei.main.user.domain.bo.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author feige
 * @version v1.0
 * @date 2022-08-15-11:08
 * @description 课程观看进度Bo
 */

@Data
@ApiModel("课程观看进度业务对象")
public class CourseProgressBo {

    /**
     * 课程id
     */
    @ApiModelProperty(value = "课程id", required = true)
    @NotNull(message = "课程id不能为空")
    private Long courseId;

    /**
     * 章节id
     */
    @ApiModelProperty(value = "章节id", required = true)
    @NotNull(message = "章节id不能为空")
    private Long chapterId;

    /**
     * 视频id
     */
    @ApiModelProperty(value = "视频id", required = true)
    @NotNull(message = "视频id不能为空")
    private Long videoId;

    /**
     * 当前章节是否看完
     */
    @ApiModelProperty(value = "当前章节是否看完(0:未看完,1:已看完)")
    private Integer chapterFinish;

    /**
     * 当前视频是否看完
     */
    @ApiModelProperty(value = "当前视频是否看完(0:未看完,1:已看完)", required = true)
    @NotNull(message = "当前视频是否看完不能为空")
    private Integer videoFinish;

    /**
     * 当前视频已观看的时间
     */
    @ApiModelProperty(value = "当前视频已观看的时间(秒/s)", required = true)
    @NotNull(message = "当前视频已观看的时间不能为空")
    private Integer videoNowDuration;

}
